package org.jeecg.modules.charge.mapper;

import java.util.List;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.jeecg.entity.charge.ChargeStandard;

/**
 * @Description: 收费标准
 * @Author: jeecg-boot
 * @Date:   2019-07-31
 * @Version: V1.0
 */
public interface ChargeStandardMapper extends BaseMapper<ChargeStandard> {
    Integer getStandarTenant( @Param("roomId")String roomId, @Param("feeCode")String feeCode, @Param("tenantRoomId")String tenantRoomId);

    Integer getCountStandardRoom( @Param("roomId")String roomId, @Param("feeId")String feeId);

    Integer insertList(@Param("standardList") List<ChargeStandard> standardList);

//    public BaseRoom getByRoom(@Param("roomId")String roomId);

     ChargeStandard getByRoomIdStandar(@Param("roomId") String roomId, @Param("feeCode") String feeCode);

     Integer deleteStandard(ChargeStandard chargeStandard);

    String queryProjectName(@Param("projectId") String projectId);

    String queryFloorId(@Param("projectId") String projectId, @Param("floorName") String floorName);

    String queryRoomId(@Param("floorId") String floorId,@Param("roomName") String roomName);

    Integer existQueryStandard(@Param("roomId") String roomId,@Param("feeItemId") String feeItemId);

    List<ChargeStandard> findPage(Page<ChargeStandard> page,@Param("chargeStandard")  ChargeStandard chargeStandard);

    ChargeStandard getStandardByFeeId(@Param("feeId") String feeId,@Param("roomId") String roomId,@Param("residentType") Integer residentType);

    ChargeStandard getStandardByFeeIdAndRoomId(@Param("itemId") String itemId,@Param("roomId") String roomId);
}
